package com.deplume.ssm.service.impl.admin.home;

import com.deplume.ssm.mapper.home.IHomeMapper;
import com.deplume.ssm.pojo.admin.Job;
import com.deplume.ssm.service.inface.admin.home.IHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by libing on 2016/8/4.
 */
@Service("homeService")
public class HomeServiceImpl implements IHomeService {

    @Autowired
    IHomeMapper homeMapper;

    @Override
    public List<Job> selectJobs() throws Exception {
        return homeMapper.selectJobs();
    }

    @Override
    public List<Job> selectJob2ByName(String typename) throws Exception {
        return homeMapper.selectJob2ByName(typename);
    }

    @Override
    public List<Job> selectJob3ByName(String typename) throws Exception {
        return homeMapper.selectJob3ByName(typename);
    }

    @Override
    public List<Job> selectJobBySalary(String typeName, String type) throws Exception {
        return homeMapper.selectJobBySalary(typeName,type);
    }

    @Override
    public List<Job> selectJobByExperience(String typeName, String type) throws Exception {
        return homeMapper.selectJobByExperience(typeName,type);
    }

    @Override
    public List<Job> selectJobByExperienceNone(String typename) throws Exception {
        return homeMapper.selectJobByExperienceNone(typename);
    }

    @Override
    public List<Job> selectJobByGraduation(String typeName, String type) throws Exception {
        return homeMapper.selectJobByGraduation(typeName,type);
    }

    @Override
    public List<Job> selectJobByGraduationNone(String typename) throws Exception {
        return homeMapper.selectJobByGraduationNone(typename);
    }

    @Override
    public List<Job> selectJobByProperty(String typeName, String type) throws Exception {
        return homeMapper.selectJobByProperty(typeName,type);
    }

    @Override
    public List<Job> selectJobByPublishTime(String typeName, String type) throws Exception {
        return homeMapper.selectJobByPublishTime(typeName,type);
    }

    @Override
    public List<Job> selectJobBySalary2(String typename, String type) throws Exception {
        return homeMapper.selectJobBySalary2(typename,type);
    }

    @Override
    public List<Job> selectJobByExperience2(String typename, String type) throws Exception {
        return homeMapper.selectJobByExperience2(typename,type);
    }

    @Override
    public List<Job> selectJobByExperienceNone2(String typename) throws Exception {
        return homeMapper.selectJobByExperienceNone2(typename);
    }

    @Override
    public List<Job> selectJobByGraduation2(String typename, String type) throws Exception {
        return homeMapper.selectJobByGraduation2(typename,type);
    }

    @Override
    public List<Job> selectJobByGraduationNone2(String typename) throws Exception {
        return homeMapper.selectJobByGraduationNone2(typename);
    }

    @Override
    public List<Job> selectJobByProperty2(String typename, String type) throws Exception {
        return homeMapper.selectJobByProperty2(typename,type);
    }

    @Override
    public List<Job> selectJobByPublishTime2(String typename, String type) throws Exception {
        return homeMapper.selectJobByPublishTime2(typename,type);
    }

    @Override
    public List<Job> selectJobByAddress(String typename, String type) throws Exception {
        return homeMapper.selectJobByAddress(typename,type);
    }

    @Override
    public List<Job> selectJobByAddress2(String typename, String type) throws Exception {
        return homeMapper.selectJobByAddress2(typename,type);
    }

    @Override
    public Job selectJobById(int jobId) throws Exception {
        return homeMapper.selectJobById(jobId);
    }
}
